<?php

class Category {

    /**
     *
     * @var int
     */
    public $category_id;
	
	/**
     *
     * @var string
     */
    public $name;
	
	/**
     *
     * @var string
     */
    public $slug;

	/**
     *
     * @var string
     */
    public $meta;
		
	/**
     *
     * @var int
     */
    public $left_id;
	
	/**
     *
     * @var int
     */
    public $right_id;
	
	/**
     *
     * @var int
     */
    public $parent_id;
	
	/**
     *
     * @var int
     */
    public $num_views;
	/**
     *
     * @var int
     */
    public $is_active;
	
	/**
     *
     * @var string
     */
    public $created_date;
	
	/**
     *
     * @var string
     */
    public $modified_date;
	
    /**
     *
     * @var int
     */
    public $user_id;

    /**
     *
     * @var string
     */
    public $language;
    

    /**
     * Constructor
     *
     * @param int $category_id
     * @param string $name
     * @param string $slug
     * @param string $meta
     * @param int $left_id
	 * @param int $right_id
	 * @param int $parent_id
     * @param int $num_view
     * @param string $is_active
     * @param string $created_date
     * @param string $modified_date
     * @param int $user_id
     * @param string $language
     */
    public function  __construct($category_id = null, $name = null, $slug = null, $meta = null, $left_id = null, $right_id = null, $parent_id = null, $num_views = null, $is_active = null, $created_date = null, $modified_date = null, $user_id = null, $language = null) {

        $this->category_id = $category_id;
        $this->name = $name;
        $this->slug = $slug;
        $this->meta = $meta;
        $this->left_id = $left_id;
        $this->right_id = $right_id;
        $this->parent_id = $parent_id;
        $this->num_views = $num_views;
        $this->is_active = $is_active;
        $this->created_date = $created_date;
        $this->modified_date = $modified_date;
        $this->user_id = $user_id;
        $this->language = $language;
    }
    
    //construct.
	/*public function  __construct($category_id = null, $name = null, $slug = null, $meta = null, $left_id = NULL) {

        $this->category_id = $category_id;
        $this->name = $name;
        $this->slug = $slug;
        $this->meta = $meta;
        $this->left_id = $left_id;
        $this->right_id = 1;
        $this->parent_id = 1;
        $this->num_views = 1;
        $this->is_active = 1;
        $this->created_date = 1;
        $this->modified_date = 1;
        $this->user_id = 1;
        $this->language = 1;
    }*/
}

//Object List.
class ListCategorys{

    /**
     *
     * @var Branch[]
     */
    public $Categorys;
}


